package com.atguigu.common.constant;

import lombok.Data;
import lombok.Getter;

public interface ProductConstant {


    @Getter
    enum AttrEnum {
        ATTR_TYPE_SALE(0, "base", "销售属性"),
        ATTR_TYPE_BASE(1, "sale", "基本属性");

        AttrEnum(int code, String flag, String message) {
            this.code = code;
            this.flag = flag;
            this.message = message;
        }

        private final int code;
        private final String flag;
        private final String message;
    }


    @Getter
    enum SpuStatusEnum {
        SPU_NEW(0, "新建状态"),
        SPU_UP(1, "上架状态"),
        SPU_DOWN(1, "下架状态");

        SpuStatusEnum(int code, String message) {
            this.code = code;
            this.message = message;
        }

        private final int code;
        private final String message;
    }
}
